#ifndef INPUTFORM_H
#define INPUTFORM_H

#include <QWidget>
#include <QtWidgets>
#include <QPixmap>
#include <QString>
#include <QFileDialog>
#include <QDragEnterEvent>
#include <QMimeData>
#include <QDropEvent>
#include <QUrl>
#include <QFile>

namespace Ui {
class inputForm;
}

class inputForm : public QWidget
{
    Q_OBJECT

public:
    explicit inputForm(QWidget *parent = 0);
    ~inputForm();

    void dragEnterEvent(QDragEnterEvent *event);    //重写拖动事件的声明

    void dropEvent(QDropEvent *event);    //重写进入事件声明

    const QMimeData *mi;
    QList <QUrl> urs;

    QString filenameUsed;


    Ui::inputForm *getUi()
    {
        return ui;
    }

signals:
    void infoSignal(const QString &name,const int &price,const int &usetime,const int &cost,const QString &filenameUsed);

    void visorSignal(const QString &signal);

private slots:
    void on_pushButton_clicked();

    void on_addfileButton_clicked();

    void on_nameEdit_textChanged(const QString &arg1);

private:
    Ui::inputForm *ui;
};


#endif // INPUTFORM_H
